package com.yh.csx.crm.dao;

import com.yh.csx.crm.po.CustomerVisitRecord;
import com.yh.csx.crm.po.CustomerVisitRecordExample;
import com.yh.csx.crm.qo.CustomerVisitQo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerVisitRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CustomerVisitRecord record);

    int insertSelective(CustomerVisitRecord record);

    CustomerVisitRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CustomerVisitRecord record);

    int updateByPrimaryKeyWithBLOBs(CustomerVisitRecord record);

    int updateByPrimaryKey(CustomerVisitRecord record);

    List<CustomerVisitRecord> selectVisitRecordList(CustomerVisitQo qo);

    List<CustomerVisitRecord> selectLastOneForEachType(@Param("customerId") Long customerId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_visit_record
     *
     * @mbggenerated
     */
    int countByExample(CustomerVisitRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_visit_record
     *
     * @mbggenerated
     */
    int deleteByExample(CustomerVisitRecordExample example);


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_visit_record
     *
     * @mbggenerated
     */
    List<CustomerVisitRecord> selectByExampleWithBLOBs(CustomerVisitRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_visit_record
     *
     * @mbggenerated
     */
    List<CustomerVisitRecord> selectByExample(CustomerVisitRecordExample example);


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_visit_record
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") CustomerVisitRecord record, @Param("example") CustomerVisitRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_visit_record
     *
     * @mbggenerated
     */
    int updateByExampleWithBLOBs(@Param("record") CustomerVisitRecord record, @Param("example") CustomerVisitRecordExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_visit_record
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") CustomerVisitRecord record, @Param("example") CustomerVisitRecordExample example);


}